<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        /* 
          函数：
          函数、方法、API、接口 同一个事物，不同的名字。
        */
        console.log('---------------start---------------');
        console.log('起床');
        console.log('上课');
        console.log('课前分享');
        console.log('中午吃饭');
        console.log('继续上课');
        console.log('吃完饭');
        console.log('上自习');
        console.log('---------------end睡觉---------------');

        function daily() {
            console.log('---------------start---------------');
            console.log('起床');
            console.log('上课');
            console.log('课前分享');
            console.log('中午吃饭');
            console.log('继续上课');
            console.log('吃完饭');
            console.log('上自习');
            console.log('---------------end睡觉---------------');
        }
        daily();

        function music() {
            console.log('大城小爱');
            console.log('借口');
            console.log('暗号');
            console.log('哪里都是你');
            console.log('晴天');
            let num = 9999;
            let i = 1111;
            num+=i;
            console.log(num);
        }
        music();
    </script>
</body>

</html>